package com.ep.thirdPlatformProject.system.enums;

import com.ep.thirdPlatformProject.dhg.entity.DhgCommonEmployeeEntity;
import com.ep.thirdPlatformProject.dhg.entity.DhgEmployeeEntity;
import com.ep.thirdPlatformProject.dhg.entity.DhgEmployeeLeaveEntity;
import com.ep.thirdPlatformProject.dhg.entity.DhgEmployeeTransEntity;
import com.ep.thirdPlatformProject.oa.entity.OABudgetMainEntity;
import lombok.Getter;

/**
 * 异步日志enum
 *
 * @author Karl
 * @date 2024/07/29
 */
@Getter
public enum OASyncLogEnum {
    OA_SYNC_ONBOARDING_PERSON(1, DhgEmployeeEntity.class, "同步人员入职"),
    OA_SYNC_TRANS_POST_PERSON(2, DhgEmployeeTransEntity.class, "同步人员转岗"),
    OA_SYNC_LEAVE_PERSON(3, DhgEmployeeLeaveEntity.class, "同步人员离职"),
    OA_SYNC_ORG_LIST(4, DhgEmployeeLeaveEntity.class, "同步组织架构相关"),
    ;

    /**
     * 表单id
     */
    private final int formId;
    /**
     * 表单名称
     */
    private final String formName;

    private final Class<? extends DhgCommonEmployeeEntity> clazz;


    OASyncLogEnum(int formId, Class<? extends DhgCommonEmployeeEntity> clazz, String formName) {
        this.formId = formId;
        this.formName = formName;
        this.clazz = clazz;
    }
}
